package com.p2p.front.service;

import java.util.List;
import java.util.Map;

import com.p2p.front.dal.model.LoanPhoto;

public interface LoanPhotoService {

	void save(LoanPhoto loanPhoto);

	List<LoanPhoto> findByLid(Long lid);
	
	List<LoanPhoto> findByLidAndType(Long lid,Integer type);

	//Map<Long, List<LoanPhoto>> findByLidList(List<Long> lidList);
	
	public Map<Long, List<LoanPhoto>> findByLidListAndType(List<Long> lidList,Integer type);

	LoanPhoto findById(Long id);

	void deleteById(Long id);

	void updateImageStatus(Long id, int status);

	/**
	 * 查询需要显示的图片列表
	 * 
	 * @return
	 */
	Map<Long, List<LoanPhoto>> findLoanPhotoList();

	/**
	 * 根据id查询图片列表信息
	 * 
	 * @param ids
	 * @return
	 */
	//List<LoanPhoto> findByLidList(Long... ids);
}
